package com.liu.spike.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import lombok.*;

/**
 * (Product)实体类
 *
 * @author makejava
 * @since 2022-05-01 23:32:21
 */

@Data
@Builder
@TableName("product")
public class Product extends Model<Product> implements Serializable {
    
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    
    /** ${column.comment} */
    @TableField(value = "product_name")  
    private String productName;
    
    /** ${column.comment} */
    @TableField(value = "stock")  
    private Integer stock;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}